import { MINUS, PLUS, RESET, TOGGLE_LOADING, UPDATE_COLOR } from './actionTypes'

export const toggle_loading = (val)=>({
    type: TOGGLE_LOADING,
    val
})

export const reset = (val) => ({
    type: RESET,
    val
})

export const plus = () => ({type: PLUS})

export const minus = () => ({ type: MINUS})

export const update_color = (val,idx) => ({ type: UPDATE_COLOR, val,idx })